package top.shiyiri.threadlocal;

/**
 * @author Aunean
 * @date 2022/2/12 16:15
 */
public class OrderDao {
    public void saveOrder(){
        String name = Thread.currentThread().getName();
//        System.out.println("saveOrder 当前线程"+name+"中保存的数据是：" + ThreadLocalTest.data.get(name));
        System.out.println("saveOrder 当前线程"+name+"中保存的数据是：" + ThreadLocalTest.threadLocal.get());
        new OrderDao().saveOrder();
    }
}
